import request from '@/utils/request'

// 列表查询
const tableList = function (params = {}) {
  return request({
    url: '/zy-api/api/watersurveys/findList',
    method: 'post',
    data: params
  })
}

// 新增
const addData = function (params = {}) {
  return request({
    url: '/zy-api/api/watersurveys/add',
    method: 'post',
    data: params
  })
}

// 修改
const editData = function (params = {}) {
  return request({
    url: '/zy-api/api/watersurveys/update',
    method: 'post',
    data: params
  })
}

// 删除
const delData = function (params = {}) {
  return request({
    url: '/zy-api/api/watersurveys/delete',
    method: 'post',
    data: params
  })
}

// 审核
const auditHandle = function (params = {}) {
  return request({
    url: '/zy-api/api/watersurveys/Review',
    method: 'post',
    data: params
  })
}

// 查询行业列表
const industryList = function (params = {}) {
  return request({
    url: '/zy-api/api/watersurveys/findIndustry',
    method: 'post',
    data: params
  })
}

// 类别选项
const findCapacity = function (watuserType) {
  return request({
    url: '/zy-api/api/watersurveys/findCapacity',
    method: 'post',
    data: { watuserType }
  })
}

// 水资源分区三级分区选项
const findThirdCode = function (adCd) {
  return request({
    url: '/zy-api/api/watersurveys/findThirdCode',
    method: 'post',
    data: { adCd }
  })
}

export {
  tableList,
  addData,
  editData,
  delData,
  auditHandle,
  industryList,
  findCapacity,
  findThirdCode
}